package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.BadnessWorkersDao;
import com.site.wisdom_construction.entity.personnelModule.BadnessWorkers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/7
 * @Description
 */
@Service
public class BadnessWorkersService implements BadnessWorkersDao {
    @Autowired
    private BadnessWorkersDao badnessWorkersDao;

    @Override
    public int insertBadnessWorkers(Map map) {
        return badnessWorkersDao.insertBadnessWorkers(map);
    }

    @Override
    public int deleteBadnessWorkers(Map map) {
        return badnessWorkersDao.deleteBadnessWorkers(map);
    }

    @Override
    public int updateBadnessWorkers(Map map) {
        return badnessWorkersDao.updateBadnessWorkers(map);
    }

    @Override
    public List<BadnessWorkers> findBadnessWorkersByPage(Map map) {
        return badnessWorkersDao.findBadnessWorkersByPage(map);
    }

    @Override
    public long Total(Map map) {
        return badnessWorkersDao.Total(map);
    }

    @Override
    public List<BadnessWorkers> findBadnessWorkersByIdCardSN(Map map) {
        return badnessWorkersDao.findBadnessWorkersByIdCardSN(map);
    }

    @Override
    public List<BadnessWorkers> findBadnessWorkersByWorkerCard(Map map) {
        return badnessWorkersDao.findBadnessWorkersByWorkerCard(map);
    }

    @Override
    public BadnessWorkers findBadnessWorkersById(Map map) {
        return badnessWorkersDao.findBadnessWorkersById(map);
    }
}
